package com.frontend;

/**
 * Connection Exception gets thrown whenever an SQL Exception occurs in the
 * Network Interface
 * 
 * @author Elizabeth
 *
 */
public class ConnectionException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1092067944622505142L;
	
	Exception base;
	String message;
	
	public ConnectionException(Exception e) {
		this.base = e;
		message = null;
	}
	
	public ConnectionException(Exception e, String message) {
		this.base = e;
		this.message = message;
	}
	
	public String getMessage(){
		return message;
	}
	
	public Exception getBaseException() {
		return base;
	}

}
